package com.bluestone.scripts;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name="script")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "script", propOrder = {
	"actions"	
})
public class Script {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
	
	@XmlElement(name = "action")
	private List<ActionScript> actions;
	
	public List getActions() {
		return actions;
	}

	public void setActions(ArrayList actions) {
		this.actions = actions;
	}
	
	public void putAction(ActionScript action){
		if(actions==null){
			actions = new ArrayList();
		}
		actions.add(action);
	}	

}
